package slice

func Equals[T comparable](s1 []T, s2 []T) bool {
	length1, length2 := len(s1), len(s2)
	if length1 != length2 {
		return false
	}
	for i, v1 := range s1 {
		if v1 != s2[i] {
			return false
		}
	}
	return true
}
